import Taro from '@tarojs/taro-rn';
import React from 'react';
import { Component } from "@tarojs/taro-rn";
import { View, Image } from "@tarojs/components-rn";
import { getRuntime, servicePhoneNumber } from "../../utils/common";
import business_successStyleSheet from "./business_success_styles";
import success_icon from '../../assets/img/icon_29.png';
// 工程金融中心-首页
var _styleSheet = business_successStyleSheet;
let Finance_success = class Finance_success extends Component {
  constructor() {
    super();
  }
  componentWillMount() {
    Taro.setNavigationBarTitle({ title: '预约成功' });
    // this.handelRouter()
  }
  handelRouter(url = '/pages/index/index') {
    console.error(url);
    getRuntime().navigateTo(url);
  }
  makePhone() {
    getRuntime().makePhoneCall(servicePhoneNumber);
  }
  render() {
    return <View style={_styleSheet["apply-success"]}>
       <View style={_styleSheet["content"]}>
         <Image src={success_icon} style={_styleSheet["success-icon"]} />
         <View style={_styleSheet["title"]}>申请预约办理成功</View>
         <View style={_styleSheet["desc"]}>我们会尽快和您取得联系，请保持电话畅通~</View>
         <View style={_styleSheet["tel"]}>咨询热线：{servicePhoneNumber}</View>
       </View>
       <View style={_styleSheet["btn-group"]}>
         <View onClick={this.handelRouter.bind(this, '/pages/index/index')} style={[_styleSheet["btn"], _styleSheet["btn-active"]]}>返回首页</View>
         <View onClick={this.makePhone.bind(this)} style={_styleSheet["btn"]}>电话咨询</View>
       </View>
     </View>;
  }
};

export default Finance_success;